<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" manifest="iphone.manifest">

<head>
    <title>Konverta4</title>
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport" />
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <script src="js/functions.js" type="text/javascript"></script>
</head>

<body>

<div id="topbar">
    <div id="title">Конверт</div>
    <div id="rightbutton"><a href="/logout">Выход</a></div>
</div>

<div id="content">
    <ul class="pageitem">
    <li class="textbox">
	<span class="header">Неделя {{ envelope.begin|date:"j b" }} - {{ envelope.end|date:"j b" }}</span>
	<p>Размер: {{ envelope.size|floatformat:2 }} {{ user.currency_name }} (в день {{ envelope.by_day|floatformat:2 }} {{ user.currency_name }})</p>
    </li>
    {% for entry in envelope %}
    <li class="menu">
	<a href="/daily?date={{ entry.0|date:"Y-m-d" }}">
	{% ifequal entry.3 1 %}
	    <span class="name" style="color:#777777">
	{% else %}
	    {% ifequal entry.3 2 %}	
	    <span class="name" style="color:#ff00ff">
	    {% else %}
	    <span class="name">
	    {% endifequal %}
	{% endifequal %}
	{{ entry.0|date:"D, d b" }} (<font color="green">{{ entry.4|floatformat:2 }}</font>)</span>
	<span class="comment">{{ entry.1 }}</span><span class="arrow"></span></a></li>
    {% endfor %}
    </ul>
</div>

</body>
</html>
